package com.mynews.net;

/**
 * Created by Administrator on 2017/6/22.
 */

public class Net {
    private static Api api;
    private Net(){
    }
    public static synchronized Api getInstance(){
        if(api == null){
            api = new RxService().creatApi(Api.class);
        }
        return api;
    }
}
